/**
 * CompositionWindowController.h
 * @author Nick Kreeger <nick.kreeger@park.edu>
 */

#import <Cocoa/Cocoa.h>
#import "CHMsgComposeWindow.h"

class nsIMsgComposeParams;



/**
 * This class provides a layer between the UI and
 * the underlying gecko composition calls.
 */
@interface CompositionWindowDelegate : NSObject <ComposerStateListenerDelegate>
{
  CompositionWindowController* mCompWindowController;  // weak ref
  CHMsgComposeWindow*          mMsgComposeWindow;      // strong ref
  
  BOOL mCompFieldsReady;
  BOOL mCompBodyReady;
}

-(id)initWithComposerParams:(nsIMsgComposeParams*)aMsgComposeParams;
-(void)setCompositionWindowController:(CompositionWindowController*)aCompWindowController;

-(void)sendMessage;

-(NSSet*)toAddresses;
-(NSSet*)ccAddresses;
-(NSString*)subject;
-(NSString*)bodyText;
-(MSG_ComposeType)composeType;

@end
